<?php



class CurrenciesMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.CurrenciesMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('currencies');
		$tMap->setPhpName('Currencies');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('CURRENCIES_ID', 'CurrenciesId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('TITLE', 'Title', 'string', CreoleTypes::VARCHAR, true, 32);

		$tMap->addColumn('CODE', 'Code', 'string', CreoleTypes::CHAR, true, 3);

		$tMap->addColumn('SYMBOL_LEFT', 'SymbolLeft', 'string', CreoleTypes::VARCHAR, false, 12);

		$tMap->addColumn('SYMBOL_RIGHT', 'SymbolRight', 'string', CreoleTypes::VARCHAR, false, 12);

		$tMap->addColumn('DECIMAL_POINT', 'DecimalPoint', 'string', CreoleTypes::CHAR, false, 1);

		$tMap->addColumn('THOUSANDS_POINT', 'ThousandsPoint', 'string', CreoleTypes::CHAR, false, 1);

		$tMap->addColumn('DECIMAL_PLACES', 'DecimalPlaces', 'string', CreoleTypes::CHAR, false, 1);

		$tMap->addColumn('VALUE', 'Value', 'double', CreoleTypes::FLOAT, false, 13);

		$tMap->addColumn('LAST_UPDATED', 'LastUpdated', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 
} 